<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%--
  Created by IntelliJ IDEA.
  User: 王浩然
  Date: 2022/6/30
  Time: 15:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>答题页面</title>

    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/layui/css/layui.css">
    <script src="${pageContext.request.contextPath}/static/layui/layui.js"></script>
</head>
    <form class="layui-form">

       <c:forEach items="${questionList}" var="questions">
           <div class="list" id="list1">
               <label class="layui-font-20">${questions.question}</label>
               <div class="layui-form">
                   <div class="layui-form-item">
                       <div class="layui-input-block">
                           <input type="radio" lay-filter="wh1" name="wh1" value="a" title="${questions.optionA}"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>${questions.optionA}</div></div>
                       </div>
                       <div class="layui-input-block">
                           <input type="radio" lay-filter="wh1" name="wh1" value="b" title="${questions.optionB}"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>${questions.optionA}</div></div>
                       </div>
                       <div class="layui-input-block">
                           <input type="radio" lay-filter="wh1" name="wh1" value="c" title="${questions.optionC}"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>${questions.optionA}</div></div>
                       </div>
                       <div class="layui-input-block">
                           <input type="radio" lay-filter="wh1" name="wh1" value="d" title="${questions.optionD}"><div class="layui-unselect layui-form-radio"><i class="layui-anim layui-icon"></i><div>${questions.optionA}</div></div>
                       </div>
                   </div>
               </div>
           </div>
       </c:forEach>
    </form>

<script>
    layui.use(['layer', 'element', 'form', 'jquery'], function () {
        var $ = layui.jquery,
            layer = layui.layer,
            element = layui.element,
            form = layui.form;

    });
</script>
</body>
</html>
